<?php

/**
 * Created by PhpStorm.
 * User: wukent
 * Date: 2017/9/20
 * Time: 下午3:12
 */
class MerchantCommentPhotoModel extends Model
{
    public function getList($cid,$page=1,$pernum=3) {

        $where = array('comment_id'=>$cid,);
        $data = $this
            ->where($where)
            ->order('photo_id DESC')
            ->page($page.','.$pernum)
            ->select();
        return $data;

    }



}